import request from '@/utils/request.js'

// 获取用户频道列表函数
export const getUserChannenlListAPI = () => {
  return request({
    method: 'get',
    url: '/v1_0/user/channels'
  })
}

// 获取文章列表接口
export const getArticleListAPI = (channelId, timestamp) => {
  return request({
    method: 'get',
    url: '/v1_0/articles',
    params: {
      channel_id: channelId,
      timestamp
    }
  })
}
